{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}}

{{#each queue in cildrenQueues}}
  {{#link-to 'capsched.queuesconf.editqueue' queue classNameBindings=":list-group-item queue.overCapacity:list-group-item-danger queue.isNew:list-group-item-info" disabled=queue.isDeletedQueue}}
    <div class="col-md-offset-{{unbound queue.depth}} col-sm-offset-{{unbound queue.depth}}">

      {{#unless queue.queues}}
        <span>
          <i class="fa fa-leaf"></i>
        </span>
      {{else}}
        <span>
          <i class="fa fa-th-large"></i>
        </span>
      {{/unless}}

      {{queue.name}}

      {{#if queue.noCapacity}}
        {{warn-badge}}
      {{/if}}

      {{#if queue.isDeletedQueue}}
        {{warning-info class="yellow-warning pull-right" tooltip="Queue is marked for deletion"}}
      {{/if}}

      {{queue-badge q=queue class="badge pull-right"}}
    </div>
  {{/link-to}}
  {{queue-hierarchy depth=childDepth parent=queue.path queues=queues deletedQs=deletedQs}}
{{/each}}
